#include "Trunk.h"
#include "ResourceManager.h"
#include <d3dx9.h>

Trunk::Trunk(int id,float x, float y)
{
	_sprite = new Sprite(_spriteHandler, ResourceManager::GetInstance()->GetTexture(ResourceManager::GetInstance()->TextureName.Trunk),0, 0);
	_id = id;
	_x = x;
	_y = y;
	_width = _sprite->getTexture()->getWidth();
	_height = _sprite->getTexture()->getHeight();
}

Trunk::~Trunk(void)
{
	
	
}

void Trunk::Update(float time)
{
}


void Trunk:: Render(int vpX, int vpY)
{
	_sprite->Render((int)_x,(int)_y, vpX, vpY);
}

OBJECT_TYPE Trunk::getObjectType()
{
	return OBJECT_LAND;
}